package issr.market.controller;

import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.rest.DefaultHttpHeaders;
import org.apache.struts2.rest.HttpHeaders;

@Result(name = "login", type = "redirectAction", params = {
		"actionName", "login" })
public class GeneraleController extends AbstractController {
	
	private static final long serialVersionUID = 328470786129263764L;

	@Override
	public HttpHeaders index(){
		if(accessForbidden())
			return new DefaultHttpHeaders("login")
				.disableCaching();
		
		return super.index();
	}
}
